package cn.lynch.bbs.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class User {
	/**
	 * 用户id
	 */
	private String id;
	
	/**
	 * 登录帐号
	 */
	private String account;
	
	/**
	 * 登录密码
	 */
	private String password;
	
	/**
	 * 注册时间
	 */
	private Date registrationTime;
	
	/**
	 *	在线时长 
	 */
	private long totalOnlineTime;
	
	/**
	 * email
	 */
	private String email;
	
	/**
	 * 最后登录时间
	 */
	private Date lastLoginTime;
	
	/**
	 * 最后登录IP
	 */
	private String lastLoginIP;
	
	private boolean enabled;
	
	private Set<Role> roles = new HashSet<Role>(0);
	
	public boolean isEnabled() {
		return enabled;
	}

	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}

	public Set<Role> getRoles() {
		return roles;
	}

	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Date getRegistrationTime() {
		return registrationTime;
	}

	public void setRegistrationTime(Date registrationTime) {
		this.registrationTime = registrationTime;
	}

	public long getTotalOnlineTime() {
		return totalOnlineTime;
	}

	public void setTotalOnlineTime(long totalOnlineTime) {
		this.totalOnlineTime = totalOnlineTime;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(Date lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIP() {
		return lastLoginIP;
	}

	public void setLastLoginIP(String lastLoginIP) {
		this.lastLoginIP = lastLoginIP;
	}
	
	
}
